<template>
  <div class="header">
    <i class="iconfont icon-back" @click="handleBack"></i>
    <slot></slot>
  </div>
</template>

<script>
export default {
  methods: {
    handleBack () {
      this.$router.back()
    }
  }
}
</script>

<style lang="scss" scoped>
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  line-height: 44px;
  background-color: white;
  text-align: center;
  i {
    font-size: 30px;
    position: fixed;
    left: 10px;
    top: 0px;
  }
}
</style>
